﻿<UserControl x:Class="CDC.SampleShell.Presentation.Controls.LoadingPanel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
              SnapsToDevicePixels="True"
             d:DesignHeight="300" d:DesignWidth="300">
    <Border BorderThickness="1" BorderBrush="{StaticResource ThemeBrush}" Background="White">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <StackPanel Grid.Row="0" Orientation="Horizontal">
                <Border Margin="10, 10, 0, 0" VerticalAlignment="Center" CornerRadius="4" Background="{StaticResource ThemeBrush}" Width="20" Height="20">
                    <Grid>
                        <Label HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="13" FontWeight="Bold" Foreground="White">EI</Label>
                    </Grid>
                </Border>
                <Label VerticalAlignment="Center" FontSize="14" Foreground="{StaticResource ThemeBrush}" Margin="10, 10, 0, 0">Epi Info 7</Label>
            </StackPanel>

            <StackPanel Grid.Row="1" VerticalAlignment="Center">
                <Label HorizontalAlignment="Center" FontSize="32" Foreground="{StaticResource ThemeBrush}">Loading data</Label>
                <ProgressBar IsIndeterminate="True" Foreground="{StaticResource ThemeLightBrush}" />
            </StackPanel>

            <StackPanel Grid.Row="2" VerticalAlignment="Center" Background="Transparent">
                <Label Margin="10, 10, 0, 10" HorizontalAlignment="Left" FontSize="12" Foreground="{StaticResource ThemeLightBrush}" Opacity="0.8" Background="Transparent" Content="{Binding LoadingStatus}" />
            </StackPanel>
        </Grid>
    </Border>
</UserControl>
